package top.shiyiri.reflection;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author Aunean
 * @date 2022/1/11
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
public class Person {

    private String name;
    public int age;

    private Person(String name) {
        this.name = name;
    }

    public void show() {
        System.out.println("你好，我是一个人");
    }

    private String showNation(String nation) {
        System.out.println("我的国籍是：" + nation);
        return nation;
    }
}
